{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_system_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_template')} {:lang('v_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li class="text-danger">{:lang('v_addnew')} {:lang('v_document')}：{$root_path}{:input('mulu')}/</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="w-100 mb-3">
                            <a href="javascript:void(0);" class="btn btn-info mr-2" onclick="javascript:history.back(-1);"><i class="fas fa-reply-all mr-1"></i>{:lang('v_goback')}</a>
                        </div>
                        <div class="card">
                            <div class="card-header"><i class="fas fa-edit mr-1"></i>{:lang('v_addnew')} {:lang('v_document')}</div>
                            <div class="card-body">
                                <form name="form_edit" id="form_edit" action="{:url('/templatemanage/creatfile',['lang'=>$lang])}" method="post" class="table mb-3">
                                    <input type="hidden" name="lang" value="{$lang}">
                                    <input type="hidden" name="mulu" value="{:input('mulu')}">
                                    <input type="hidden" name="fromwhere" value="{:input('fromwhere')}">
                                    <div class="row form-group">
                                        <div class="col-md-2 col-form-label text-right text-danger">{:lang('v_document_name')} *</div>
                                        <div class="col-md-4">
                                            <div class="input-group">
                                                <input name="filename" type="text" class="form-control" placeholder="{:lang('v_english_only')}">
                                                <span class="input-group-append">
                                                    <button type="button" class="btn btn-default">.{$suffix}</button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-2 col-form-label text-right text-danger">{:lang('v_document')} {:lang('v_content_a')} *</div>
                                        <div class="col-md-10">
                                            <textarea name="content" rows="35" class="form-control">{$content}</textarea>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="offset-md-2 col-md-10 mb-4">
                                            {if input('fromwhere') eq 'skinlist'}
                                                <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/templatemanage/creatfile',['lang'=>$lang])}','{:url('/templatemanage/skinlist',['lang'=>$lang,'mulu'=>input('mulu'),'fromwhere'=>input('fromwhere')])}');"><i class="fas fa-check-circle mr-1"></i>{:lang('v_save')}</button>
                                            {else /}
                                                <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/templatemanage/creatfile',['lang'=>$lang])}','{:url('/templatemanage/mululist',['lang'=>$lang,'mulu'=>input('mulu')])}');"><i class="fas fa-check-circle mr-1"></i>{:lang('v_save')}</button>
                                            {/if}
                                            <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);"><i class="fa fa-angle-double-left mr-1"></i>{:lang('v_goback')}</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>